package com.bluegalaxy.nhb.sntimer;

import com.bluegalaxy.nhb.snservice.common.exception.SNException;

import java.lang.reflect.InvocationTargetException;

/**
 * Created by IntelliJ IDEA.
 *
 * @author:
 * @date: 2020/8/7
 * @time: 14:09
 * @description: To change this template use File | Settings | File Templates.
 */
public class SnTimerTestBuild {

    public static void runTimer(String timerName,Long timeout){
        try {
            CkTimerApplication.main(new String[]{timerName,timeout.toString()});
        } catch (SNException e) {
            e.printStackTrace();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (NoSuchMethodException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InvocationTargetException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        }
    }

}
